package com.ruoyi.shopping.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品规格对象 jy_mall_product_specs
 *
 * @author ruoyi
 * @date 2022-06-09
 */
@ApiModel
public class MallProductSpecs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public MallProduct getMallProduct() {
        return mallProduct;
    }

    public void setMallProduct(MallProduct mallProduct) {
        this.mallProduct = mallProduct;
    }

    private MallProduct mallProduct;

    /** 主键 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    @ApiModelProperty(value = "商品id")
    private Long productId;

    /** 规格名称 */
    @Excel(name = "规格名称")
    @ApiModelProperty(value = "规格名称")
    private String specsName;



    /** 规格照片 */
    @Excel(name = "规格照片")
    @ApiModelProperty(value = "规格照片")
    private String specsPhoto;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty(value = "排序")
    private Integer sort;


    /** 原价 */
    @Excel(name = "原价")
    @ApiModelProperty(value = "原价")
    private BigDecimal originalPrice;

    /** 现价 */
    @Excel(name = "现价")
    @ApiModelProperty(value = "现价")
    private BigDecimal currentPrice;

    /** 销量 */
    @Excel(name = "销量")
    @ApiModelProperty(value = "销量")
    private Integer salesNum;

    private Long specsBackId;

    public Long getSpecsBackId() {
        return specsBackId;
    }

    public void setSpecsBackId(Long specsBackId) {
        this.specsBackId = specsBackId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setSpecsName(String specsName)
    {
        this.specsName = specsName;
    }

    public String getSpecsName()
    {
        return specsName;
    }
    public void setSpecsPhoto(String specsPhoto)
    {
        this.specsPhoto = specsPhoto;
    }

    public String getSpecsPhoto()
    {
        return specsPhoto;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setOriginalPrice(BigDecimal originalPrice)
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice()
    {
        return originalPrice;
    }
    public void setCurrentPrice(BigDecimal currentPrice)
    {
        this.currentPrice = currentPrice;
    }

    public BigDecimal getCurrentPrice()
    {
        return currentPrice;
    }
    public void setSalesNum(Integer salesNum)
    {
        this.salesNum = salesNum;
    }

    public Integer getSalesNum()
    {
        return salesNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("specsName", getSpecsName())
            .append("specsPhoto", getSpecsPhoto())
            .append("sort", getSort())
            .append("originalPrice", getOriginalPrice())
            .append("currentPrice", getCurrentPrice())
            .append("salesNum", getSalesNum())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }


}
